import * as pdfjsLib from 'pdfjs-dist';

// 从本地加载worker文件而不是CDN
const pdfWorkerSrc = `/pdf-worker/pdf.worker.min.mjs`;
pdfjsLib.GlobalWorkerOptions.workerSrc = pdfWorkerSrc;

export default pdfjsLib; 